From b04c0e7b1c4a8e562a23e6f716473d9d9a19f544 Mon Sep 17 00:00:00 2001
From: Armin Novak <armin.novak@thincast.com>
Date: Mon, 10 Oct 2022 11:57:13 +0200
Subject: [PATCH] Fix const warnings in ffmpeg h264 module

---
 libfreerdp/codec/h264_ffmpeg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libfreerdp/codec/h264_ffmpeg.c b/libfreerdp/codec/h264_ffmpeg.c
index 23569d07733..8a23db2473c 100644
--- a/libfreerdp/codec/h264_ffmpeg.c
+++ b/libfreerdp/codec/h264_ffmpeg.c
@@ -71,9 +71,9 @@ static inline char* error_string(char* errbuf, size_t errbuf_size, int errnum)
 
 typedef struct
 {
-	AVCodec* codecDecoder;
+	const AVCodec* codecDecoder;
 	AVCodecContext* codecDecoderContext;
-	AVCodec* codecEncoder;
+	const AVCodec* codecEncoder;
 	AVCodecContext* codecEncoderContext;
 	AVCodecParserContext* codecParser;
 	AVFrame* videoFrame;
